/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const usersRouter = {
  path: '/user',
  component: Layout,
  redirect: '/user/user-list',
  name: 'User',
  meta: {
    title: '权限管理',
    icon: 'lock'
  },
  children: [
    {
      path: '/user-list',
      name: 'UserList',
      component: () => import('@/views/user/user-list'),
      meta: { title: '用户管理' }
    }, {
      path: '/role',
      name: 'Role',
      component: () => import('@/views/user/role'),
      meta: { title: '角色管理' }
    }, {
      path: '/menu',
      name: 'Menu',
      component: () => import('@/views/user/menu'),
      meta: { title: '菜单管理' }
    }
  ]
}

export default usersRouter
